QT       += core gui
QT += gui x11extras

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

PJSIP_SOURCE_PATH = /home/wuwei/PJSIP/pjsip_code/pjsip_demo

SOURCES += \
    log.cpp \
    main.cpp \
    mainwindow.cpp \
    my_account.cpp \
    my_call.cpp \
    print_info.cpp

HEADERS += \
    config.h \
    log.h \
    mainwindow.h \
    my_account.h \
    my_call.h \
    print_info.h

FORMS += \
    mainwindow.ui

LIBS += -L$${PJSIP_SOURCE_PATH}/lib/ -lpjsua2-x86_64-unknown-linux-gnu \
     -lpjsua-x86_64-unknown-linux-gnu \
     -lpjmedia-x86_64-unknown-linux-gnu \
     -lpjsdp-x86_64-unknown-linux-gnu\
     -lpjsip-simple-x86_64-unknown-linux-gnu\
     -lpjsip-ua-x86_64-unknown-linux-gnu \
     -lpjsip-x86_64-unknown-linux-gnu\
     -lpjmedia-videodev-x86_64-unknown-linux-gnu      \
     -lpjsdp-x86_64-unknown-linux-gnu                 \
     -lpjmedia-codec-x86_64-unknown-linux-gnu         \
     -lpjmedia-audiodev-x86_64-unknown-linux-gnu      \
     -lpjmedia-x86_64-unknown-linux-gnu               \
     -lpjnath-x86_64-unknown-linux-gnu                \
     -lg7221codec-x86_64-unknown-linux-gnu            \
     -lgsmcodec-x86_64-unknown-linux-gnu              \
     -lresample-x86_64-unknown-linux-gnu              \
     -lilbccodec-x86_64-unknown-linux-gnu             \
     -lspeex-x86_64-unknown-linux-gnu                 \
     -lsrtp-x86_64-unknown-linux-gnu                  \
     -lpjlib-util-x86_64-unknown-linux-gnu            \
     -lpj-x86_64-unknown-linux-gnu                    \
     -lm -luuid -lnsl -lrt -lpthread -lasound -lssl -lcrypto

INCLUDEPATH += $${PJSIP_SOURCE_PATH}/include

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
